package MainPackage;
import java.awt.geom.Point2D;

public class HauntedHole
{
	public Point2D origin;
	public Point2D destination;
	public int time;
	
	public HauntedHole(Point2D origin, Point2D destination, int time)
	{
		this.origin = origin;
		this.destination = destination;
		this.time = time;
	}
	
	@Override
	public boolean equals(Object obj)
	{
		HauntedHole holeOther;
		if (obj instanceof HauntedHole)
			holeOther = (HauntedHole) obj;
		else 
			return false;
		
		
		if (holeOther.origin.getX() == this.origin.getX() && holeOther.origin.getY() == this.origin.getY())
			return true;
		else
			return false;
		
	}
}